﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.KDNiao
{
    class Program
    {
        static void Main(string[] args)
        {
            //var requestData = "{'OrderCode':'','ShipperCode':'YD','LogisticCode':'3525200000354'}";

            var model = new TrancesParam() { LogisticCode = "3525200000354", ShipperCode = "YD" };
            var listTrance = KDNiaoSdk.GetTraces(model);

            var msg = listTrance != null ? JsonConvert.SerializeObject(listTrance) : "0 个进度";
            Echo(msg);
        }

        static void Echo(object msg)
        {
            Console.WriteLine(msg);
        }
    }
}